<div v-if="innerDialog">
  <jm-generate-dialog
          ref="generateDialog"
          :visible="dialogVisible"
          :title="desformName"
          :remote="remoteFuncs"
          :form-json="jsonData"
          :form-data="editData"
          :user-info="userInfo"
          :read-only="readOnly"
          :loading="loading"
          :action="action"
          @submit="handleSubmit"
          @close="handleClose"
  ></jm-generate-dialog>
</div>
<div v-else :style="bodyStyle">
  <div class="el-dialog__body" style="padding: 0;">
    <jm-generate-form
            ref="generateForm"
            :data="jsonData"
            :remote="remoteFuncs"
            :value="editData"
            :user-info="userInfo"
            :read-only="readOnly"
            :action="action"
            v-loading="loading"
            @dialog-change="handleDialogChange"
    ></jm-generate-form>
  </div>
  <div v-if="!readOnly" v-loading="loading" class="el-dialog__footer" :class="{block:isMobile}" style="text-align: center">
    <div element-loading-text class="dialog-footer">
      <el-button type="primary" @click="handleSubmit">提交</el-button>
      <div v-if="isExternal && externalSavedList.length > 0" style="margin-top: 8px;" >
        <el-button type="primary" plain @click="handleViewExternalSaved">查看已保存的数据</el-button>
      </div>
    </div>
  </div>
</div>